package y23.Nov;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;

public class Test10 {
    List<Integer> data = new ArrayList<>();
    int[] w = new int[100];

    public static void main(String[] args) {
        Test10 test = new Test10();
        for (int i = 0; i < 10000; i++) {
            Random random = new Random();
            int j = random.nextInt(100);
            test.data.add(j);
            test.w[j]++;
        }
        System.out.println(Arrays.toString(test.w));
    }

}
